package com.alexeyhanin.tapestry.goodies.util;

/**
 * @author aha
 * @since 2009.5.11
 *        $Id: StringUtil.java 14 2009-11-27 20:11:53Z gagarin61 $
 */
public class StringUtil {

    /**
     * Returns string representation of object.
     *
     * @param object target
     * @return value of {@link Object#toString() toString()} or empty string if object is {@code null}
     */
    public static String notNullString(Object object) {
        return object == null ? "" : object.toString();
    }

}
